{__NOLAYOUT__}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset={:C('DEFAULT_CHARSET')}" />
        <title>{:L('system_name')} </title>
        <load href='./Public/Css/style.css' />
        <load href="./Public/Js/jquery.min.js"/>
        <load href="./Public/Js/jquery.validate.js"/>
        <load href="./Public/Js/jquery.form.js"/>
        <load href="./Public/Js/my.js"/>
        <!--[if IE 6]>
                        <script src="./Public/Js/png.js"  type="text/javascript" ></script>
                        <script type="text/javascript">
                        DD_belatedPNG.fix(' .login_box ');
                        </script>
        <![endif]-->
    </head>
    <body onLoad="reload()" id="loginbg" >
        <div class="t_all">
            <div class="t_form">
                <h1>高级网站内容管理系统</h1>
                <div class="msg"><div id="result" class="result none"></div></div>
                <form method='post' name="login" id="form1" action="{:U('Login/doLogin')}"style="overflow:hidden;zoom:1;clear: both">
                    <div class="input">
                        <p class="do"><label>用户:</label><input type="text" id="username"  name="username"/> </p>
                        <p class="do"><label>密码:</label><input type="password"  name="password" /></p>                
                    </div>
                    
                    <p class="verify">
                        <label>{:L('verify')}:</label>
                        <input name="verifyCode" class="input-text" id="verifyCode"  size="6" value="" maxlength="4" />
                        <img src="{:U('Home/Index/verify')}" onclick="javascript:resetVerifyCode();" class="checkcode" align="absmiddle"  title="{:L('resetVerifyCode')}" id="verifyImage"/>
                        <a onclick="javascript:resetVerifyCode();">看不清楚,换一张</a>
                    </p>
                    <p><input type="hidden" name="ajax" value="1" /><input type="submit" value="" class="submit" /> </p>
                </form>
            </div>
            <p class="pow">技术支持 ding</p>
        </div>      
        <script language="JavaScript">
            $(document).ready(function() {
                var height =  $(window).height()/2-255;
                $(".t_all").css("margin-top",height);

            });
            jQuery(document).ready(function($){
                $('#form1').ajaxForm({
                    beforeSend:function(){
                        $('#result').html('<img src="./Public/Images/msg_loading.gif">').show();;
                    },
                    success:       complete,  // post-submit callback
                    dataType: 'json'
                });

            });
            function complete(data){
                if (data.status==1)
                {
                    $('#result').html(data.info).show();
                    //art.dialog.tips('{:L("logined_ok")}',2);
                    setTimeout(function(){	window.location.href = '{:U("Index/index")}';},1000);
                }else{
                    $('#result').html(data.info).show();
                }
            }
            function reload(){
                document.login.username.focus();
                if(self!=top){
                    window.top.location.href = '{:U("Login/index")}';
                }
            }

        </script>
        <style>
            body{background:url(./Public/Images/t_all.jpg);font:Microsoft,YaHei,Arial, Helvetica, sans-serif;}
            .t_all{width:100%;}
            .t_form{background:url(./Public/Images/t_bg.jpg) no-repeat;width:406px;height:275px;margin:auto;padding-top:35px;padding-left:96px}
            .t_form h1{color:#57a9df;font-size:25px;height:25px;line-height:25px;margin:0;padding:0;}
            .t_form .input{overflow:hidden;float:left;font-size:14px;font-family:"宋体";color:#666;}
            .t_form .input .do{height:30px;margin-bottom:10px;width:257px;overflow:hidden;zoom:1}
            .t_form .input .do input,.verify .input-text{float:left;height:25px;width:176px;border:1px solid #cbccce}
            .t_form .input .do label,.verify label{color:#666;float:left;width:50px;margin-right:5px; line-height:25px}
            .t_form .img{float:left;margin-top:18px}
            .verify{clear:both;height:31px;line-height:31px;margin-bottom:10px;overflow:hidden;zoom:1}
            .t_form .submit{margin-left:85px;background:url(./Public/Images/dl.jpg) no-repeat;width:106px;height:33px;border:0}
            .verify .input-text{width: 105px;float: left;}
            .pow{margin:0 auto;width:509px;margin-top:19px;text-align:center;color:#FFF;font-size:12px;font-family:"宋体";}
            .pow a{color:#FFF; text-decoration:none}
        </style>
    </body>
</html><!--企业网站管理系统-->